<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Zend_Io_StringWriter</title>
			<link rel="stylesheet" href="styles/phpdoc.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Zend_Io_StringWriter</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-consts">Constants</a>
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The Zend_Io_StringWriter represents a character stream whose source is  a string.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Sven Vollbehr &lt;<a href="mailto:sven@vollbehr.eu">sven@vollbehr.eu</a>&gt;</li>
				<li><span class="field">version:</span> $Id: StringWriter.php 177 2010-03-09 13:13:34Z svollbehr $</li>
				<li><span class="field">copyright:</span> Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)</li>
				<li><span class="field">license:</span> <a href="http://framework.zend.com/license/new-bsd">New BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="Zend_Io/_Io---StringWriter.php.html">/Io/StringWriter.php</a> (line <span class="field">37</span>)
		</p>
		
				
		<pre><a href="Zend_Io/Zend_Io_Writer.html">Zend_Io_Writer</a>
   |
   --Zend_Io_StringWriter</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-consts">Constants</a>
							
															<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																								<div class="method-definition">
					<img src="images/Constructor.png" alt=" "/>
					<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">null</span>])
																<span class="method-result">Zend_Io_StringWriter</span>
									</div>
																<div class="method-definition">
					<img src="images/Destructor.png" alt=" "/>
					<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
																<span class="method-result">void</span>
									</div>
																<div class="method-definition">
					<img src="images/Method.png" alt=" "/>
					<a href="#toString" title="details" class="method-name">toString</a>
										()
																<span class="method-result">void</span>
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-consts">Constants</a>
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="Zend_Io/Zend_Io_Writer.html">Zend_Io_Writer</a></span></p>
					<blockquote>
													<img src="images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="Zend_Io/Zend_Io_Writer.html#var$_fd">Zend_Io_Writer::$_fd</a></span><br>
							</span>
													<img src="images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="Zend_Io/Zend_Io_Writer.html#var$_size">Zend_Io_Writer::$_size</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">48</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructs the Zend_Io_StringWriter class with given source string.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Zend_Io_Exception if an I/O error occurs</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Zend_Io_StringWriter</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$data</span><span class="var-description">: The string to use as the source.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$length</span><span class="var-description">: If the <var>length</var> argument is given,   reading will stop after <var>length</var> bytes have been read or   the end of string is reached, whichever comes first.</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="Zend_Io/Zend_Io_Writer.html#method__construct">Zend_Io_Writer::__construct()</a></dt>
						<dd>Constructs the Zend_Io_Writer class with given open file descriptor.</dd>
					</dl>
			
	</div>
<a name="__destruct" id="__destruct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="images/Destructor.png" />
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number">85</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Closes the file descriptor.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="Zend_Io/Zend_Io_Writer.html#method__destruct">Zend_Io_Writer::__destruct()</a></dt>
						<dd>Default destructor.</dd>
					</dl>
			
	</div>
<a name="toString" id="toString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="images/Method.png" />
		<span class="method-title">toString</span> (line <span class="line-number">70</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the string representation of this class.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			toString
		</span>
				()
			</div>
	
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="Zend_Io/Zend_Io_Writer.html">Zend_Io_Writer</a></span></p>
					<blockquote>
													<img src="images/Constructor.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#method__construct">Zend_Io_Writer::__construct()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodclose">Zend_Io_Writer::close()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodflush">Zend_Io_Writer::flush()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodgetFileDescriptor">Zend_Io_Writer::getFileDescriptor()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodgetOffset">Zend_Io_Writer::getOffset()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodgetSize">Zend_Io_Writer::getSize()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodsetOffset">Zend_Io_Writer::setOffset()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodsetSize">Zend_Io_Writer::setSize()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwrite">Zend_Io_Writer::write()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteFloatBE">Zend_Io_Writer::writeFloatBE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteFloatLE">Zend_Io_Writer::writeFloatLE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteGuid">Zend_Io_Writer::writeGuid()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteHHex">Zend_Io_Writer::writeHHex()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt8">Zend_Io_Writer::writeInt8()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt16BE">Zend_Io_Writer::writeInt16BE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt16LE">Zend_Io_Writer::writeInt16LE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt32BE">Zend_Io_Writer::writeInt32BE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt32LE">Zend_Io_Writer::writeInt32LE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt64BE">Zend_Io_Writer::writeInt64BE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteInt64LE">Zend_Io_Writer::writeInt64LE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteLHex">Zend_Io_Writer::writeLHex()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteString8">Zend_Io_Writer::writeString8()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteString16">Zend_Io_Writer::writeString16()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteUInt8">Zend_Io_Writer::writeUInt8()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteUInt16BE">Zend_Io_Writer::writeUInt16BE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteUInt16LE">Zend_Io_Writer::writeUInt16LE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteUInt32BE">Zend_Io_Writer::writeUInt32BE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#methodwriteUInt32LE">Zend_Io_Writer::writeUInt32LE()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#method__destruct">Zend_Io_Writer::__destruct()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#method__get">Zend_Io_Writer::__get()</a></span><br>
													<img src="images/Method.png" alt=" "/>
							<span class="method-name"><a href="Zend_Io/Zend_Io_Writer.html#method__set">Zend_Io_Writer::__set()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-vars">Vars</a>
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
										<h4>Inherited Constants</h4>
				<A NAME='inherited_consts'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="Zend_Io/Zend_Io_Writer.html">Zend_Io_Writer</a></span></p>
					<blockquote>
													<img src="images/Variable.png" />
							<span class="const-title">
								<span class="const-name"><a href="Zend_Io/Zend_Io_Writer.html#constBIG_ENDIAN_ORDER">Zend_Io_Writer::BIG_ENDIAN_ORDER</a></span><br>
							</span>
													<img src="images/Variable.png" />
							<span class="const-title">
								<span class="const-name"><a href="Zend_Io/Zend_Io_Writer.html#constLITTLE_ENDIAN_ORDER">Zend_Io_Writer::LITTLE_ENDIAN_ORDER</a></span><br>
							</span>
													<img src="images/Variable.png" />
							<span class="const-title">
								<span class="const-name"><a href="Zend_Io/Zend_Io_Writer.html#constMACHINE_ENDIAN_ORDER">Zend_Io_Writer::MACHINE_ENDIAN_ORDER</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Wed, 04 May 2011 08:39:42 +0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>